package com.service;

import com.entity.Student;
import com.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {

    @Autowired
    private StudentMapper studentMapper;

    public List<Student> findAll(){
        return studentMapper.findAll();
    }

    public int addStudent(Student student){
        return studentMapper.addStudent(student);
    }

    public int deleteStudent(String sno){
        return studentMapper.deleteStudent(sno);
    }
}
